package atm.com.service.user;

import atm.com.mapper.UserMapper;
import atm.com.pojo.Bankcard;
import atm.com.pojo.User;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * UserServiceImpl class
 * @author di zhang
 * @date 2021/8/24
 */
@Service
public class UserServiceImpl implements UserServiceInf{
    @Autowired
    private UserMapper userMapper;

    @Override
    public User GetUserById(Integer userId) {
        QueryWrapper<User> queryWrapper=new QueryWrapper<>();
        queryWrapper.lambda().eq(User ::getUserId,userId);
        return   userMapper.selectOne(queryWrapper);
    }


}
